<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>转成字符型</title>
	</head>
	<body>
		<script>
			var num1=num2=4,num3=8;
			console.log(typeof(num1));
			var a=String(num1)
			console.log(typeof(a));
			//字符串+ 字符串的连接
			console.log(num1+num2+num3.toString());
			//参数表示的是输出的进制
			console.log(num3.toString(2));
		</script>
	</body>
</html>
